<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta charset="utf-8" />
    <style type="text/css">
			.center-text {
				text-align: center;
			}
	</style>
	<title>下载本地版（测试版）</title>
  </head>

  <body>
    <h3 class="center-text">下载本地版（测试版）</h3><br />
	<div class="center-text">
		<a href="#" id="download">下载</a>
	</div>	
  </body>

  <script>
		const downLoad=(url,filename)=>{
			var oA = document.createElement("a");
			oA.download = filename;// 设置下载的文件名，默认是'下载'
			oA.href = url;
			document.body.appendChild(oA);
			oA.click();
			oA.remove(); // 下载之后把创建的元素删除
		}
		document.getElementById("download").addEventListener('click', function(event){
			downLoad("native/PdfTool.zipx","PdfTool.zip");
		});
  </script>
</html>